﻿<?php
$messages = array (
'added'				=> 'Bookmark added.'
'bm'				=> 'Bookmark Manager'
'button no'			=> 'No'
'button yes'			=> 'Yes'
'cancelled'			=> 'All right, then.'
'deleted'			=> 'Bookmark was deleted.'
'edit bm'			=> 'Edit a bookmark'
'error auth'			=> 'Authentification failed'
'error missing newcat'		=> 'If you are creating a NEW category, please specify a category name.'
'error missing site'		=> 'Please include a Site Name.'
'error missing url'		=> 'Please include a URL.'
'error no email'		=> 'Please enter an e-mail address.'
'error pass short'		=> 'Password is too short. (Must be at least 6 characters.) Please try another.'
'error permission'		=> 'You do not have permission to delete this bookmark.'
'error username exists'		=> 'Username already in use. Please try another.'
'error username short'		=> 'Username is too short. (Must be at least 4 characters.) Please try another.'
'form register banner'		=> 'Register a new account'
'form register email' 		=> 'E-mail'
'form register successful'	=> 'Account was successfully created.'
'input cat'			=> 'Category:'
'input new pass'		=> 'Desired Password'
'input new username'		=> 'Desired Login Name'
'input newcat'			=> 'New category name:'
'input pass'			=> 'Password'
'input site'			=> 'Site Name:'
'input url'			=> 'URL (address):'
'input username'		=> 'Login Name'
'link add'			=> 'Add a bookmark'
'link delete'			=> 'X'
'link edit'			=> 'E'
'link help'			=> 'Help'
'link log in anew'		=> 'Log in anew'
'link log out'			=> 'Log out'
'link proceed'			=> 'Proceed'
'link return main'		=> 'Return to Main'
'link return'			=> 'Return'
'link see all'			=> 'see all in'
'log in'			=> 'Login'
'logged out'			=> 'Logged Out'
'new'				=> 'NEW'
'please log in'			=> 'Please log in'
'register banner'		=> 'Create your Bookmark Manager account instantly! Please choose a username and password:'
'sum all'			=> 'bookmark(s) saved.'
'sum thiscat'			=> 'bookmark(s) saved in category'
'warning delete'		=> 'Do you really want to delete this bookmark?'
'warning'			=> 'Warning'
'welcome'			=> 'Welcome back,'
);

function msg($s) {
    global $LANG;
    global $messages;
    
    if (isset($messages[$LANG][$s])) {
        return $messages[$LANG][$s];
    } else {
        error_log("l10n error:LANG:" . 
            "$lang,message:'$s'");
    }
}
?>